package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 家庭成员表
 * </p>
 *
 * @author stylefeng
 * @since 2021-04-14
 */
@TableName("familynum")
public class Familynum extends Model<Familynum> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 家庭id
     */
    private Integer familyid;
    /**
     * 家庭类型id
     */
    private String familykindid;
    /**
     * 家庭名称
     */
    private String familyname;
    /**
     * 家庭户主id
     */
    private Integer familyheadid;
    /**
     * 家庭成员id
     */
    private Integer familyuserid;
    /**
     * 加入家庭时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date jointime;
    /**
     * 空闲字段1
     */
    private String spare1;
    /**
     * 空闲字段2
     */
    private String spare2;
    /**
     * 空闲字段3
     */
    private String spare3;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFamilyid() {
        return familyid;
    }

    public void setFamilyid(Integer familyid) {
        this.familyid = familyid;
    }

    public String getFamilykindid() {
        return familykindid;
    }

    public void setFamilykindid(String familykindid) {
        this.familykindid = familykindid;
    }

    public String getFamilyname() {
        return familyname;
    }

    public void setFamilyname(String familyname) {
        this.familyname = familyname;
    }

    public Integer getFamilyheadid() {
        return familyheadid;
    }

    public void setFamilyheadid(Integer familyheadid) {
        this.familyheadid = familyheadid;
    }

    public Integer getFamilyuserid() {
        return familyuserid;
    }

    public void setFamilyuserid(Integer familyuserid) {
        this.familyuserid = familyuserid;
    }

    public Date getJointime() {
        return jointime;
    }

    public void setJointime(Date jointime) {
        this.jointime = jointime;
    }

    public String getSpare1() {
        return spare1;
    }

    public void setSpare1(String spare1) {
        this.spare1 = spare1;
    }

    public String getSpare2() {
        return spare2;
    }

    public void setSpare2(String spare2) {
        this.spare2 = spare2;
    }

    public String getSpare3() {
        return spare3;
    }

    public void setSpare3(String spare3) {
        this.spare3 = spare3;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Familynum{" +
        ", id=" + id +
        ", familyid=" + familyid +
        ", familykindid=" + familykindid +
        ", familyname=" + familyname +
        ", familyheadid=" + familyheadid +
        ", familyuserid=" + familyuserid +
        ", jointime=" + jointime +
        ", spare1=" + spare1 +
        ", spare2=" + spare2 +
        ", spare3=" + spare3 +
        "}";
    }
}
